package com.rockcent.mall.lib.repository;

import com.rockcent.common.common.PageResult;
import com.rockcent.mall.lib.dto.ArticleDto;
import com.rockcent.mall.lib.dto.QueryPagingDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by anti on 2016-08-22.
 */
public interface ArticleRepositoryCustom {

    PageResult<ArticleDto> findArticlePageByMallId(PageResult page,Long mallId,String keyword,Long categoryId,String orderBy,String xsc);

     PageResult<ArticleDto> findArticlePageByCategoryId(PageResult page, Long categoryId,Long mallId);

    List<ArticleDto> searchArticlByKeyword(Long id, String keyword);

    List<ArticleDto> getTop5Article(Long id);
}
